package com.zscbw.test;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	public static Date commonFomatDate(String pattern, String dateStr) throws Exception {
		DateFormat df = new SimpleDateFormat(pattern);
		return df.parse(dateStr);
	}
}
